package com.changli02.selfdefine.exer1;

import org.junit.Test;

import java.util.List;

public class DAoTest {
    @Test
    public void test() {
        DAO<User> dao = new DAO<>();
        dao.save("1001",new User(01,19,"sail"));
        dao.save("1002",new User(02,20,"klas"));
        List<User> list = dao.list();
        for (User u:list){
            System.out.println(u);
        }




    }

}
